package com.ruoyi.school.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.school.mapper.MajorGradeMapper;
import com.ruoyi.school.domain.MajorGrade;
import com.ruoyi.school.service.IMajorGradeService;

/**
 * 分数线Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-01-25
 */
@Service
public class MajorGradeServiceImpl implements IMajorGradeService 
{
    @Autowired
    private MajorGradeMapper majorGradeMapper;

    /**
     * 查询分数线
     * 
     * @param gradeId 分数线主键
     * @return 分数线
     */
    @Override
    public MajorGrade selectMajorGradeByGradeId(Long gradeId)
    {
        return majorGradeMapper.selectMajorGradeByGradeId(gradeId);
    }

    /**
     * 查询分数线列表
     * 
     * @param majorGrade 分数线
     * @return 分数线
     */
    @Override
    public List<MajorGrade> selectMajorGradeList(MajorGrade majorGrade)
    {
        return majorGradeMapper.selectMajorGradeList(majorGrade);
    }

    /**
     * 新增分数线
     * 
     * @param majorGrade 分数线
     * @return 结果
     */
    @Override
    public int insertMajorGrade(MajorGrade majorGrade)
    {
        return majorGradeMapper.insertMajorGrade(majorGrade);
    }

    /**
     * 修改分数线
     * 
     * @param majorGrade 分数线
     * @return 结果
     */
    @Override
    public int updateMajorGrade(MajorGrade majorGrade)
    {
        return majorGradeMapper.updateMajorGrade(majorGrade);
    }

    /**
     * 批量删除分数线
     * 
     * @param gradeIds 需要删除的分数线主键
     * @return 结果
     */
    @Override
    public int deleteMajorGradeByGradeIds(Long[] gradeIds)
    {
        return majorGradeMapper.deleteMajorGradeByGradeIds(gradeIds);
    }

    /**
     * 删除分数线信息
     * 
     * @param gradeId 分数线主键
     * @return 结果
     */
    @Override
    public int deleteMajorGradeByGradeId(Long gradeId)
    {
        return majorGradeMapper.deleteMajorGradeByGradeId(gradeId);
    }
}
